﻿<%@ Page Language="C#" MasterPageFile="~/Teamp.Master" AutoEventWireup="true" CodeBehind="GioHang.aspx.cs" Inherits="CungUngXayDung.GioHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
    <div style="padding:20px;">
    <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td><h1>Giỏ hàng</h1></td>
        </tr>

        <tr>
            <td><br /></td>
        </tr>

        

        <tr>
            <td>

                    <asp:HyperLink ID="link" runat="server" NavigateUrl="~/Default.aspx">Tiếp tục mua hàng</asp:HyperLink>
                    &nbsp &nbsp&nbsp&nbsp&nbsp Tổng giá trị giỏ hàng : 
                <span class="product_price_large"><asp:Label ID="lbTongGiaTri" runat="server" Text="0 VNĐ"></asp:Label> </span> VNĐ
            </td>
        </tr>

        <tr>
            <td><br /></td>
        </tr>

         <tr>
            <td><hr /></td>
        </tr>

        <tr>
            <td><br /></td>
        </tr>

        <tr>
            <td>
                <div><asp:Label ID="lbTrangThai" runat="server"></asp:Label></div>
                <div><br /></div>
            </td>
        </tr>
        <tr>
            <td>
                 <asp:DataList ID="ShopCart" runat="server" RepeatColumns="1">
                    <ItemTemplate>
                            <div>
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td valign="top" width="119px">
                                            <div>
                                                <asp:Image BorderStyle="Solid" ID="img" runat="server" Width="119px" ImageUrl='<%# Bind("HinhAnh", "~/images/sanpham/{0}") %>'/>
                                            </div>
                                        </td>

                                        <td valign="top"  width="500px" style="padding-left:20px;">
                                            <br />
                                            <div class="product_tittle" style="text-align:left; font-size:16px;">
                                                <asp:Label ID="lbTen" runat="server" Text='<%# Bind("TenSanPham") %>'></asp:Label> - ID : <asp:Label ID="Label2" runat="server" Text='<%# Bind("MaSanPham") %>'></asp:Label>
                                            </div>
                                            <br />
                                            
                                            <div>
                                                <asp:HiddenField ID="hddMaSP" runat="server" Value='<%# Bind("MaSanPham") %>' />
                                            </div>
                                            <div>
                                                Giá (VNĐ) <asp:TextBox ID="txtSoLuong" runat="server"  Text='<%# Bind("SoLuong") %>' Width="30px"></asp:TextBox> (<asp:Label ID="Label3" runat="server" Text='<%# Bind("TenDonViTinh") %>'></asp:Label>)
                                                x <asp:Label ID="lbGia" runat="server" Text='<%# Bind("DonGia") %>'></asp:Label> VNĐ / <asp:Label ID="Label4" runat="server" Text='<%# Bind("TenDonViTinh") %>'></asp:Label>= <span class="product_price"><asp:Label ID="Label1" runat="server" Text='<%# Bind("ThanhTien") %>'></asp:Label></span> VNĐ
                                                <asp:HyperLink ID="linkXoa" runat="server" NavigateUrl='<%# Bind("MaSanPham","~/GioHang.aspx?delid={0}") %>'>Xóa</asp:HyperLink>
                                            </div>
                                            <br />
                                            
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>

        
        <tr>
            <td><br /></td>
        </tr>
         <tr>
            <td align="right">
                <asp:ImageButton ID="ImageButton3" runat="server" onclick="btnCapNhat_Click" 
                    ImageUrl="~/images/button/button_capnhatgio.jpg" />
               </td>
        </tr>


         <tr>
            <td><hr /></td>
        </tr>

         <tr>
            <td><br /></td>
        </tr>

        

        

        <tr>
            <td>
                <asp:ImageButton ImageAlign="AbsMiddle" ID="ImageButton2" runat="server" 
                    ImageUrl="~/images/button/button_DatHang.png" onclick="btnDatHang_Click" />

                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">Tiếp tục mua hàng</asp:HyperLink>
                    &nbsp &nbsp&nbsp&nbsp&nbsp Tổng giá trị giỏ hàng : 
                <span class="product_price_large"><asp:Label ID="lbTongGiaTri2" runat="server" Text="0 VNĐ"></asp:Label> </span> VNĐ
               
            </td>
        </tr>
    </table>
</div>
</asp:Content>